package com.gugee.ins.common.dal.service.spider;

import com.gugee.ins.common.model.spider.blogger.FollowersInfo;
import com.gugee.ins.common.model.spider.blogger.FollowingInfo;
import com.gugee.ins.common.model.spider.blogger.InsBloggerByIdResponse;

/**
 * Created with IntelliJ IDEA.
 * Description:爬取数据服务
 * User: luolifeng
 * Date: 2021-01-07 15:40
 */
public interface SpiderSvc {
    /**
     *
     * @param uid 目标播主id
     * @param totalCounts 共需采集粉丝数
     * @param batchSize 每次爬取批次大小
     * @return 爬取结果
     */
    FollowersInfo spiderFollowers(long uid, int totalCounts,int batchSize);
    /**
     *
     * @param uid 目标播主id
     * @param totalCounts 共需采集粉丝数
     * @param batchSize 每次爬取批次大小
     * @return 爬取结果
     */
    FollowingInfo spiderFollowing(long uid, int totalCounts, int batchSize);

    /**
     * 爬取uid接口验证是否账户异常
     * @param uid
     * @return
     */
    InsBloggerByIdResponse spiderUid4CheckSuspicious(long uid);

    /**
     * 爬取uid接口
     * @param uid
     * @return
     */
    InsBloggerByIdResponse getInsBloggerByUid(long uid);
}
